<script>
	/*
	 * 追格小程序 v1.4.0
	 * Author: 追格
	 * Help document: https://www.zhuige.com
	 * Copyright © 2021-2022 www.zhuige.com All rights reserved.
	 */
	
	import Vue from 'vue'
	import Util from '@/utils/util';
	import Api from '@/utils/api';
	import Rest from '@/utils/rest';
	import Auth from "@/utils/auth";
	
	export default {
		globalData: {
			appName: '',
			appDesc: '',
			appLogo: '',
		},
		
		onLaunch() {
			Rest.get(Api.queryWxConfig).then(res => {
					Auth.setConfig(res.result.config)
				getApp().globalData.appName = res.result.config.app_title;
				getApp().globalData.appDesc = res.result.config.app_desc;
				getApp().globalData.appLogo = res.result.config.app_logo;
			}, err => {
				console.log(err)
			});
		},
		
		onShow() {
			
		},
		
		onHide() {
			
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "style/main.css";
	@import "style/list.css";
	
	@keyframes show {
		0% {
			transform: translateY(-50px);
		}

		60% {
			transform: translateY(40upx);
		}

		100% {
			transform: translateY(0px);
		}
	}

	@-webkit-keyframes show {
		0% {
			transform: translateY(-50px);
		}

		60% {
			transform: translateY(40upx);
		}

		100% {
			transform: translateY(0px);
		}
	}	
	
</style>
